package com.bestcem.xm.member.service;

import com.bestcem.xm.common.core.domain.web.ServiceResult;

/**
 * 示例服务
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/7/16
 */
public interface SequenceService {

    /**
     * 获取名称序号
     *
     * @param name
     * @param orgId
     * @return
     */
    ServiceResult<Integer> getNameSequence(String name, String orgId);

    /**
     * 根据 code 获取 序号
     *
     * @param code
     * @param incrBy
     * @return
     */
    ServiceResult<Integer> getSequence(String code, long incrBy);
}
